obj-m += modk.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules -I /usr/src/linux-headers-$(shell uname -r)/include -I /usr/include

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

ins:	all
	sudo insmod modk.ko
	lsmod | grep modk

rm:
	sudo rmmod modk

log:
	sudo rm /var/log/messages

re:	rm ins
